public class Demofs1 {
    public BinaryTree.TreeNode createTree(String s) {
        BinaryTree.TreeNode root = null;
        if(s.charAt(i) != '#'){
            root = new BinaryTree.TreeNode(s.charAt(i));
            i++;
            createTree(s);
            createTree(s);
        }
        else{
            i++;
        }
        return root;
    }
}
